package com.ruoyi.qt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qt.mapper.QtScoreMapper;
import com.ruoyi.qt.domain.QtScore;
import com.ruoyi.qt.service.IQtScoreService;

/**
 * 成绩Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-27
 */
@Service
public class QtScoreServiceImpl implements IQtScoreService 
{
    @Autowired
    private QtScoreMapper qtScoreMapper;

    /**
     * 查询成绩
     * 
     * @param scoreId 成绩主键
     * @return 成绩
     */
    @Override
    public QtScore selectQtScoreByScoreId(String scoreId)
    {
        return qtScoreMapper.selectQtScoreByScoreId(scoreId);
    }

    /**
     * 查询成绩列表
     * 
     * @param qtScore 成绩
     * @return 成绩
     */
    @Override
    public List<QtScore> selectQtScoreList(QtScore qtScore)
    {
        return qtScoreMapper.selectQtScoreList(qtScore);
    }

    /**
     * 新增成绩
     * 
     * @param qtScore 成绩
     * @return 结果
     */
    @Override
    public int insertQtScore(QtScore qtScore)
    {
        return qtScoreMapper.insertQtScore(qtScore);
    }

    /**
     * 修改成绩
     * 
     * @param qtScore 成绩
     * @return 结果
     */
    @Override
    public int updateQtScore(QtScore qtScore)
    {
        return qtScoreMapper.updateQtScore(qtScore);
    }

    /**
     * 批量删除成绩
     * 
     * @param scoreIds 需要删除的成绩主键
     * @return 结果
     */
    @Override
    public int deleteQtScoreByScoreIds(String[] scoreIds)
    {
        return qtScoreMapper.deleteQtScoreByScoreIds(scoreIds);
    }

    /**
     * 删除成绩信息
     * 
     * @param scoreId 成绩主键
     * @return 结果
     */
    @Override
    public int deleteQtScoreByScoreId(String scoreId)
    {
        return qtScoreMapper.deleteQtScoreByScoreId(scoreId);
    }
}
